package test1223;

public class Test02 {
    public static void main(String[] args) {
        // 打印5位数各个位的数字
        int value = 12345;
        System.out.println("个位:"+value%10);
        System.out.println("十位:"+value/10%10);
        System.out.println("百位:"+value/100%10);
        System.out.println("千位:"+value/1000%10);
        System.out.println("万位:"+value/10000);
    }
}



